extends /templates/core/modal-base-flat

block modal-header-content
  h3(data-i18n="contact.contact_us") Contact CodeCombat...

block modal-body-content
  p
    span(data-i18n="contact.welcome")
    span.spl(data-i18n="contact.forum_prefix")
    if me.isHomeUser()
      a(href="https://discourse.codecombat.com/", data-i18n="contact.forum_page")
      span.spl.spr(data-i18n="contact.faq_prefix")
    a(data-i18n="contact.faq", href="https://codecombat.zendesk.com/hc/en-us")
    span(data-i18n="contact.faq_suffix")
    span= ' '
    span(data-i18n="contact.prefer_email_prefix")
    - email = 'support@codecombat.com'
    a(href="mailto:"+email)= email
    span(data-i18n="contact.prefer_email_suffix")
  .form
    .form-group
      label.control-label(for="contact-email", data-i18n="general.email") Email
      input#contact-email.form-control(name="email", type="email", value=(me.get('anonymous') ? '' : me.get('email')), data-i18n="[placeholder]contact.where_reply", placeholder="Where should we reply?")
    .form-group
      label.control-label(for="contact-message", data-i18n="general.message") Message
      textarea#contact-message.form-control(name="message", rows=8)

  #contact-screenshot.secret
    a(target='_blank', data-i18n="contact.screenshot_included") Screenshot included.
    br
    img.pull-left(width=100)

block modal-footer-content
  span.sending-indicator.pull-left.secret(data-i18n="common.sending") Sending...
  a(href='#', data-dismiss="modal", aria-hidden="true", data-i18n="common.cancel").btn Cancel
  button.btn.btn-primary#contact-submit-button(data-i18n="contact.send") Send Feedback
